home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13492 < prev    next >
Encoding:
Text File  |  1996-08-05  |  800 bĀ   |  29 lines

  1. Path: csdec1.tuwien.ac.at!ekogler
  2. From: ekogler@csdec1.tuwien.ac.at (Edgar Kogler)
  3. Newsgroups: comp.lang.c
  4. Subject: ?? Meaning of errno 25 ENOTTY with system()
  5. Date: 3 Apr 1996 12:19:04 GMT
  6. Organization: Technische UniversitĪ£t Wien, Vienna, Austria
  7. Distribution: local
  8. Message-ID: <4jtqbo$oao@news.tuwien.ac.at>
  9. Reply-To: ekogler@logic.tuwien.ac.at
  10. NNTP-Posting-Host: csdec1.tuwien.ac.at
  11.  
  12. In my program I use the following:
  13.  
  14. strcpy(message,"mail -s \"Subject\" to_me < /abs/file/path/message"
  15. system(message);
  16.  
  17. I get the error 
  18.  
  19. 25, ENOTTY, Not a Typewriter
  20. The file named in an ioctl call is not a terminal or one of the other devices
  21. to which the call applies.
  22.  
  23. Copied the string to the terminal and executed, evrythg is fine.
  24. Does anyone know this problem?
  25.  
  26. Please <reply> to this message.
  27.  
  28. Edgar
  29.